package com.atguigu.gulimall.product.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("gulimall-ware")
public interface WareFeignService {
    @PostMapping("/ware/waresku/hasStock")
//    getSkusHasStock
    R getSkusHasStock(@RequestBody List<Long> skuIds);
    /**
     * 1.r  设计成 加泛型
     * 2.直接返回想要的数据
     * 3.自己封装
     */
}
